home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frm6_3_2
- Caption = "For index = 0 To n Step s"
- ClientHeight = 1710
- ClientLeft = 1050
- ClientTop = 1770
- ClientWidth = 3390
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- LinkTopic = "Form1"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 1710
- ScaleWidth = 3390
- Begin VB.PictureBox picValues
- Height = 255
- Left = 120
- ScaleHeight = 195
- ScaleWidth = 3075
- TabIndex = 5
- Top = 1320
- Width = 3135
- End
- Begin VB.CommandButton cmdDisplay
- Caption = "Display Values of index"
- Height = 495
- Left = 120
- TabIndex = 4
- Top = 600
- Width = 3135
- End
- Begin VB.TextBox txtStep
- Height = 285
- Left = 2040
- TabIndex = 3
- Top = 120
- Width = 735
- End
- Begin VB.TextBox txtEnd
- Height = 285
- Left = 840
- TabIndex = 1
- Top = 120
- Width = 735
- End
- Begin VB.Label lblS
- Caption = "s:"
- Height = 375
- Left = 1800
- TabIndex = 2
- Top = 120
- Width = 255
- End
- Begin VB.Label lblN
- Caption = "n:"
- Height = 375
- Left = 600
- TabIndex = 0
- Top = 120
- Width = 255
- End
- Attribute VB_Name = "frm6_3_2"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdDisplay_Click()
- Dim n As Single, s As Single, index As Single
- 'Display values of index ranging from 0 to n Step s
- picValues.Cls
- n = Val(txtEnd.Text)
- s = Val(txtStep.Text)
- For index = 0 To n Step s
- picValues.Print index;
- Next index
- End Sub
-